package services;

import domain.entities.EnviosDAO;
import domain.entities.Envios;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * Created with IntelliJ IDEA.
 * User: nico
 * Date: 8/9/12
 * Time: 2:30 PM
 * To change this template use File | Settings | File Templates.
 */
@Service
public class EnviosService {

    private EnviosDAO dao;

    public EnviosService() {
    }

    @Autowired
    public EnviosService(EnviosDAO dao) {
        this.dao = dao;
    }


    public void save(Envios envio){
        dao.save(envio);
    }
}
